﻿<%@ Page Title="" Language="C#" MasterPageFile="~/static.Master" AutoEventWireup="true"
    CodeBehind="Match.aspx.cs" Inherits="GS.Cricket.Web.Match" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="css/nonbootstrap.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_Nav" runat="server">
    <ul class="nav">
        <li><a href="#">Home</a></li>
        <li><a href="Team.aspx">Team</a></li>
        <li class="active"><a href="Fixtures.aspx">Fixtures</a></li>
        <li><a href="PointsTable.aspx">Points Table</a></li>
    </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="form1" runat="server">
    <div class="row-fluid">
        <div class="tabbable tabs-left">
            <ul class="nav nav-tabs">
                <li class="active"><a href="#tab1" data-toggle="tab">Scoreboard</a></li>
                <li><a href="#tab2" data-toggle="tab">Bowling</a></li>
            </ul>
            <div class="tab-content">
                <div class="tab-pane active" id="tab1">
                    <div class="span6">
                        <h2>
                            <asp:Label ID="Label_TeamA" runat="server" Text="TeamA"></asp:Label></h2>
                        <asp:GridView ID="TeamAGrid" runat="server" GridLines="None" ShowHeader="false" CssClass="table table-hover"
                            DataKeyNames="Id">
                            <Columns>
                                <asp:BoundField DataField="Name" HeaderText="Player" />
                                <asp:TemplateField HeaderText="Runs Scored">
                                    <ItemTemplate>
                                        <asp:Label ID="RunsScored" runat="Server" Text='<%# Eval("RunsScored") %>' />
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="RunsScored" runat="Server" />
                                    </EditItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <SelectedRowStyle CssClass="gridSelectedRow" />
                        </asp:GridView>
                        <div class="alert alert-info">
                            <div class="row-fluid">
                                <div class="span3">
                                    <asp:Label ID="Label1" runat="server" Text="Extras"></asp:Label>
                                    <h4>
                                        <asp:Label ID="Label_TeamAExtras" runat="server" Text="-"></asp:Label></h4>
                                </div>
                                <div class="span3">
                                    <asp:Label ID="Label2" runat="server" Text="Total Overs"></asp:Label>
                                    <h4>
                                        <asp:Label ID="Label_TeamATotalOvers" runat="server" Text="-"></asp:Label></h4>
                                </div>
                                <div class="span3">
                                    <asp:Label ID="Label6" runat="server" Text="Wickets"></asp:Label>
                                    <h4>
                                        <asp:Label ID="Label_TeamAWickets" runat="server" Text="-"></asp:Label></h4>
                                </div>
                                <div class="span3">
                                    <asp:Label ID="Label4" runat="server" Text="Total Runs"></asp:Label>
                                    <h2>
                                        <asp:Label ID="Label_TeamATotalRuns" runat="server" Text="-"></asp:Label></h2>
                                </div>
                            </div>
                        </div>
                        <asp:Panel ID="Panel_TeamAAdmin" runat="server">
                            <div class="clearfix">
                            </div>
                            <strong>Player Stats</strong>
                            <br />
                            <div class="control-group info">
                                <label class="control-label span5" for="inputInfo">
                                    Player</label>
                                <div class="controls">
                                    <asp:DropDownList ID="DropDownList_TeamA" runat="server">
                                    </asp:DropDownList>
                                </div>
                            </div>
                            
                            <div class="control-group info">
                                <label class="control-label span5" for="inputInfo">
                                    Runs Scored</label>
                                <div class="controls">
                                    <asp:TextBox ID="TextBox_TeamARunsScored" runat="server" CssClass="span4"></asp:TextBox>
                                </div>
                            </div>
                            
                            <div class="clearfix">
                            </div>

                            <asp:Button ID="Button_TeamAAddPlayer" runat="server" Text="Add Score" CssClass="btn btn-info"
                                OnClick="Button_AddScoreTeamAClick" />
                            <asp:LinkButton ID="Button_TeamADeletePlayer" runat="server" CssClass="btn btn-danger"
                                OnClick="Button_DeleteScoreTeamAClick">
                                    <i class="icon-remove-sign icon-white"></i> Delete Score
                            </asp:LinkButton>

                            <div class="clearfix">
                            </div>
                            <br />
                            <strong>Team Stats</strong>
                            <div class="control-group info">
                                <label class="control-label span5" for="inputInfo">
                                    Extras</label>
                                <div class="controls">
                                    <asp:TextBox ID="TextBox_TeamAExtras" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="control-group info">
                                <label class="control-label span5" for="inputInfo">
                                    Overs Played</label>
                                <div class="controls">
                                    <asp:TextBox ID="TextBox_TeamAOversPlayed" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="control-group info">
                                <label class="control-label span5" for="inputInfo">
                                    Wickets</label>
                                <div class="controls">
                                    <asp:TextBox ID="TextBox_TeamAWickets" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="control-group info">
                                <label class="control-label span5" for="inputInfo">
                                    Total Runs</label>
                                <div class="controls">
                                    <asp:TextBox ID="TextBox_TeamATotalRuns" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="control-group info">
                                <label class="control-label span5" for="inputInfo">
                                    Winner?</label>
                                <div class="controls">
                                    <asp:RadioButton ID="RadioButton_TeamAWinner" runat="server" GroupName="RadioWinner" />
                                </div>
                            </div>
                            <asp:Button ID="Button_TeamAStats" runat="server" Text="Add/Update Team Stats" CssClass="btn btn-info"
                                OnClick="Button_AddUpdateTeamAStatsClick" />
                        </asp:Panel>
                        <div>
                            <asp:Label ID="Label_MatchTeamAError" runat="server" CssClass="control-label" for="inputError"></asp:Label>
                        </div>
                    </div>



                    <div class="span6">
                        <h2>
                            <asp:Label ID="Label_TeamB" runat="server" Text="TeamB"></asp:Label></h2>
                        <asp:GridView ID="TeamBGrid" runat="server" GridLines="None" ShowHeader="false" CssClass="table table-hover"
                            DataKeyNames="Id">
                            <Columns>
                                <asp:BoundField DataField="Name" HeaderText="Player" />
                                <asp:TemplateField HeaderText="Runs Scored">
                                    <ItemTemplate>
                                        <asp:Label ID="RunsScored" runat="Server" Text='<%# Eval("RunsScored") %>' />
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="RunsScored" runat="Server" />
                                    </EditItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <SelectedRowStyle CssClass="gridSelectedRow" />
                        </asp:GridView>
                                                <div class="alert alert-info">
                            <div class="row-fluid">
                                <div class="span3">
                                    <asp:Label ID="Label3" runat="server" Text="Extras"></asp:Label>
                                    <h4>
                                        <asp:Label ID="Label_TeamBExtras" runat="server" Text="-"></asp:Label></h4>
                                </div>
                                <div class="span3">
                                    <asp:Label ID="Label5" runat="server" Text="Total Overs"></asp:Label>
                                    <h4>
                                        <asp:Label ID="Label_TeamBTotalOvers" runat="server" Text="-"></asp:Label></h4>
                                </div>
                                <div class="span3">
                                    <asp:Label ID="Label7" runat="server" Text="Wickets"></asp:Label>
                                    <h4>
                                        <asp:Label ID="Label_TeamBWickets" runat="server" Text="-"></asp:Label></h4>
                                </div>
                                <div class="span3">
                                    <asp:Label ID="Label8" runat="server" Text="Total Runs"></asp:Label>
                                    <h2>
                                        <asp:Label ID="Label_TeamBTotalRuns" runat="server" Text="-"></asp:Label></h2>
                                </div>
                            </div>
                        </div>
                        <asp:Panel ID="Panel_TeamBAdmin" runat="server">
                            <div class="clearfix">
                            </div>
                            <strong>Player Stats</strong>
                            <br />
                            <div class="control-group info">
                                <label class="control-label span5" for="inputInfo">
                                    Player</label>
                                <div class="controls">
                                    <asp:DropDownList ID="DropDownList_TeamB" runat="server">
                                    </asp:DropDownList>
                                </div>
                            </div>
                            
                            <div class="control-group info">
                                <label class="control-label span5" for="inputInfo">
                                    Runs Scored</label>
                                <div class="controls">
                                    <asp:TextBox ID="TextBox_TeamBRunsScored" runat="server" CssClass="span4"></asp:TextBox>
                                </div>
                            </div>
                            
                            <div class="clearfix">
                            </div>

                            <asp:Button ID="Button_TeamBAddPlayer" runat="server" Text="Add Score" CssClass="btn btn-info"
                                OnClick="Button_AddScoreTeamBClick" />
                            <asp:LinkButton ID="Button_TeamBDeletePlayer" runat="server" CssClass="btn btn-danger"
                                OnClick="Button_DeleteScoreTeamBClick">
                                    <i class="icon-remove-sign icon-white"></i> Delete Score
                            </asp:LinkButton>

                            <div class="clearfix">
                            </div>
                            <br />
                            <strong>Team Stats</strong>
                            <div class="control-group info">
                                <label class="control-label span5" for="inputInfo">
                                    Extras</label>
                                <div class="controls">
                                    <asp:TextBox ID="TextBox_TeamBExtras" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="control-group info">
                                <label class="control-label span5" for="inputInfo">
                                    Overs Played</label>
                                <div class="controls">
                                    <asp:TextBox ID="TextBox_TeamBOversPlayed" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="control-group info">
                                <label class="control-label span5" for="inputInfo">
                                    Wickets</label>
                                <div class="controls">
                                    <asp:TextBox ID="TextBox_TeamBWickets" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="control-group info">
                                <label class="control-label span5" for="inputInfo">
                                    Total Runs</label>
                                <div class="controls">
                                    <asp:TextBox ID="TextBox_TeamBTotalRuns" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="control-group info">
                                <label class="control-label span5" for="inputInfo">
                                    Winner?</label>
                                <div class="controls">
                                    <asp:RadioButton ID="RadioButton_TeamBWinner" runat="server" GroupName="RadioWinner" />
                                </div>
                            </div>
                            <asp:Button ID="Button_TeamBStats" runat="server" Text="Add/Update Team Stats" CssClass="btn btn-info"
                                OnClick="Button_AddUpdateTeamBStatsClick" />
                        </asp:Panel>
                        <div>
                            <asp:Label ID="Label_MatchTeamBError" runat="server" CssClass="control-label" for="inputError"></asp:Label>
                        </div>
                    </div>
                </div>
                <div class="tab-pane" id="tab2">
                    <p>
                        Bowling.</p>
                </div>
            </div>
        </div>
    </div>
    </form>
    <%--
    <form id="form1" runat="server">
    <div id="wrapper">
        <asp:GridView ID="DisplayTeamAGrid" runat="server" GridLines="None" ShowHeader="false"
            CssClass="table table-striped" DataKeyNames="Id">
            <Columns>
                <asp:BoundField DataField="Name" HeaderText="Player" />
                <asp:TemplateField HeaderText="Runs Scored">
                    <ItemTemplate>
                        <asp:Label ID="RunsScored" runat="Server" Text='<%# Eval("RunsScored") %>' />
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="RunsScored" runat="Server" />
                    </EditItemTemplate>
                </asp:TemplateField>
            </Columns>
            <RowStyle CssClass="SelectTeam" />
            <SelectedRowStyle CssClass="SelectPlayerSelectedRow" />
        </asp:GridView>
        <asp:GridView ID="DisplayTeamBGrid" runat="server" GridLines="None" ShowHeader="false"
            CssClass="table table-striped" DataKeyNames="Id">
            <Columns>
                <asp:BoundField DataField="Name" />
            </Columns>
            <RowStyle CssClass="SelectTeam" />
            <SelectedRowStyle CssClass="SelectPlayerSelectedRow" />
        </asp:GridView>
    </div>
    </form>--%>
</asp:Content>
